// 通用
const actions = [
  {
    id: 'quit',
    name: '退出',
    type: '通用',
    exec: (app) => {
      // 系统自检
      if (app.systemCheckServer.isSystemCheckOpen === true) {
        app.systemCheckServer.isSystemCheckOpen = false
        return
      }
      // 弹窗
      if (app.modal.isOpen === true) {
        app.modal.destroy()
        app.modal.isOpen = false
        return
      }
      // 控制面板
      app.panelServer.close()
    }
  }
]

export default actions
